<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>收款</title>
</head>
<body>
<form method="post" action="/bsc/bis_business_order/update">
<input type="hidden" name="order_id" value="${bis_Business_Order.order_id }">
<table border="1" width="60%" rules="all" align="center">
<tr>
<td style="height: 50px">顾客姓名</td> <td><input type="text" name="username" value="${bis_Business_Order.bis_Custom_UserCustom_user_id.username }"></td> 
<td style="height: 50px">手机号码</td> <td><input type="text" name="mobile" id="mobile" value="${bis_Business_Order.bis_Custom_UserCustom_user_id.mobile }" onchange="select111()"></td>
</tr>
<tr>
<td style="height: 50px">消费内容</td> <td colspan="3"><input type="text" name="project_name" value="${bis_Business_Order.bis_Nurse_ProjectProject_id.project_name }"></td> 
</tr>
<tr>
<td style="height: 50px">价格</td> <td colspan="3"><input type="text" name="rmb_price" value="${bis_Business_Order.bis_Nurse_ProjectProject_id.rmb_price } (${bis_Business_Order.bis_Nurse_ProjectProject_id.beauty_price }个颜值)"></td> 
</tr>
<tr>
<td style="height: 50px">扣款方式</td> <td colspan="3">颜值或现金</td> 
</tr>
<tr>
<td style="height: 50px">现金收入</td> <td colspan="3"><input type="text" name="cash_income" value=""></td>
</tr>
</table>
<div style="padding-left: 800px ;padding-top: 20px"> <input type="submit" value="确  定" style="height: 40px ;width: 80px"></div>
<div style="position: relative;left: 1080px;top: -315px">
<input id="checkCode" name="checkCode" type="text" placeholder="请输入验证码" style="height: 30px">
<button type="button" class="wechat" id="sendCode"  onclick="send1()" style="height: 30px">获取验证码</button>
</div>
</form>
</body>
 <script type="text/javascript" src="/bsc/static/js/jquery.min.js"></script>
<script type="text/javascript">
//发送验证码
function send1() {
	var mobile = $("#mobile").val();
	/* if (mobile == '') {
		alert("请输入手机号");
		return;
	}
	if (!mobileReg.test(mobile)) { //验证手机号码
		
		return;
	} */

	$.ajax({
		type : 'post',
		url : '/bsc/wechat/code',
		data : {
			mobile : mobile
		},
		dataType : 'json',
		success : function(data) {
			
			var t = 60;
			for (i = 1; i <= t; i++) {

				window.setTimeout("updateGetCode(" + i + "," + t
						+ ")", i * 1000);
			}
			
		}
	})

}
function updateGetCode(num, t) {

	if (num == t) {
		//$("#sendCode").attr('onclick', 'sendCheckCode()');
		$("#sendCode").html("重新发送");
	} else {
		var printnr = t - num;
		$("#sendCode").html(printnr + "秒后再发送");
	}

}
</script>
</html>